//
// Created by Tony on 2024/7/9.
//

#include "MemberRef.h"
#include "ConstantPool.h"
#include "SymRef.h"

namespace RtCode {

string MemberRef::memberName() const {
    shared_ptr<ConstantPool> pool = getConstantPool();
    const auto* cStr = pool->getUtf8(memberNameIndex);
    return string{cStr};
}

} // namespace RtCode
